<?php
class AdminModel extends Model {
	protected $tableName='admin';
	
	public function login($username){
		$sql="select * from admin where name='$username'";
		$res=mysql_query($sql) or die(mysql_error());
		$userinfo=mysql_fetch_assoc($res);
		return $userinfo;
	}
}
?>